<?php


ini_set('display_errors', 1);
require_once '/data/wwwroot/g_vendor/autoload.php';


//资源位标识 资源位类型
$adm = $argv[1] ?? '';
$op = $argv[2] ?? '0'; // 0 create; 1 delete; 2 exist
switch ($op) {
    case 0:
        if ($adm) $rs = \Biz\service\advertisement\AdCacheManagement::createAdmUser($adm);
        break;
    case 1:
        if ($adm) $rs = \Biz\service\advertisement\AdCacheManagement::delAdmUser($adm);
        break;
    case 2:
        if ($adm) $rs = \Biz\service\advertisement\AdCacheManagement::isAdmUser($adm);
        break;
}
if (isset($rs)) var_dump($rs);
echo implode(',', \Biz\service\advertisement\AdCacheManagement::listAdmUser()), PHP_EOL;

